﻿<html>
<head>
    <script src="~/Scripts/jquery-1.9.1.min.js"></script>
    <script src="~/Scripts/jquery.easyui.min.js"></script>
    <script type="text/javascript">
        $('#magazineGrid').datagrid({
            height: 340,
            url: '/MyAdmin/DongXiShangJia',
            method: 'POST',
            //queryParams: { 'id': id },
            idField: '产品ID',
            striped: true,
            fitColumns: true,
            singleSelect: false,
            rownumbers: true,
            pagination: false,
            nowrap: false,
            pageSize: 10,
            pageList: [10, 20, 50, 100, 150, 200],
            showFooter: true,
            columns: [[
                { field: 'ck', checkbox: true },
                { field: 's', title: '刊名', width: 180, align: 'left' },
                { field: 'sds', title: '类别', width: 150, align: 'left' },
                { field: 'asda', title: '月份', width: 100, align: 'left' },
                { field: 'asda', title: '期次', width: 100, align: 'left' },
                { field: 'asd', title: '价格', width: 100, align: 'right' },
                { field: 'sda', title: '订阅数', width: 100, align: 'right' },
                { field: 'ad', title: '库存数', width: 100, align: 'right' },
                { field: 'sadsss', title: '邮寄方式', width: 80, align: 'left' },
                {
                    field: 'sadada', title: '数量', width: 80, align: 'left',
                    editor: {
                        type: 'numberbox',
                        options: {
                            min: 0,
                            precision: 0
                        }
                    }
                }
            ]],
            onBeforeLoad: function (param) {
            },
            onLoadSuccess: function (data) {

            },
            onLoadError: function () {

            },
            onClickCell: function (rowIndex, field, value) {

            }
        });
    </script>
</head>
<body>
    <div id="magazineGrid"></div>
    <div>
        <input type="text" value="dfsdfsdfsdfsdfsdf"/>
    </div>
</body>
</html>